home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4029 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  34 lines

  1. Path: airdmhor.gen.nz!not-for-mail
  2. From: gumboot@airdmhor.gen.nz (Simon Hosie)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Something to play with.
  5. Date: 2 Feb 1996 00:44:16 +1300
  6. Organization: Airdmhor
  7. Message-ID: <4eq92g$6cu@airdmhor.gen.nz>
  8. References: <4eist1$9fk@airdmhor.gen.nz> <9601291847.AA21404@dxmint.cern.ch>
  9. NNTP-Posting-Host: localhost.gen.nz
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. gumboot@airdmhor.gen.nz (Simon Hosie) writes:
  13. > ...
  14. > "!!!!!In!9qEtRC)#yNa{!!!!!!!,)$!!!!]!!!@Z!!rV+"
  15. > ;void main(void){S=T;D=(unsigned char*)T;for(i=1;i<sizeof(T);i
  16. > +=5){V=0;for(j=0;j<5;j++){V*=85;V+=strchr(C,*S++)-C;}*D++=V;V
  17. > /=0x100;*D++=V;V/=0x100;*D++=V;V/=0x100;*D++=V;}F=fopen(
  18. > "gbcode.zip","wb");fwrite(T,1,2338,F);}
  19. > If anyone gets any kind of warning or error comiling this or anything it
  20. > generates, please let me know.
  21.  
  22. Dan Pop:
  23. >     AxCrnA$ cc test.c
  24.  
  25. >     ;void main(void){S=T;D=(unsigned char*)T;for(i=1;i<sizeof(T);i
  26. >     ......^
  27. >     %CC-E-NEEDNONVOID, In this statement, "main(...)" has void type, but occurs in a context that requires a non-void result.
  28. >     at line number 55 in file DISK$L32:[DANPOP]TEST.C;31
  29.  
  30.   Ok, I've got that error covered, now.  I've had someone get it to crash,
  31. anyone else have any problems there (after they've changed "void main(" to
  32. "int main(").
  33.